package com.king.designpatterns.结构型模式.外观模式;

/**
 * 秘书类
 *
 * @author king
 * @date 2021-06-08 14:23
 */
public class Secretary {
    private Chauffeur chauffeur = new Chauffeur();
    private Hotel hotel = new Hotel();
    private Restaurant restaurant = new Restaurant();
    private Airport airport = new Airport();

    /**
     * 安排出差
     */
    public void trip(String to, int days){
        airport.bookTicket("青岛", to);
        chauffeur.drive("机场");
        hotel.reserve(days);
    }

    /**
     * 安排饭局
     */
    public void repast(int num){
        restaurant.reserve(num);
        chauffeur.drive("酒店");
    }
}
